package com.pithypan.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * 文件分页查询结果集
 * @param <T>
 */
public class PaginationResultVo<T> {

    private Integer totalCount;    //数据项总数
    private Integer pageSize;      //每页显示数据项数
    private Integer pageNo;        //页码
    private Integer pageTotal;     //总页数
    private List<T> list = new ArrayList<T>();    //数据集

    public PaginationResultVo(Integer totalCount, Integer pageSize, Integer pageNo, List<T> list) {
        this.totalCount = totalCount;
        this.pageSize = pageSize;
        this.pageNo = pageNo;
        this.list = list;
    }

    public PaginationResultVo(List<T> list) { this.list = list; }

    public PaginationResultVo() {
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public Integer getPageTotal() {
        return pageTotal;
    }

    public List<T> getList() {
        return list;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}


